package tjs.study.notes.dotest.work;

import io.micrometer.core.instrument.util.IOUtils;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import java.nio.charset.Charset;

/**
 * Created by Nicky.Tang on 2024/4/30 15:31
 *
 * @since 02.12.10
 */
public class JSEngie {
    public static void main(String[] args) throws Exception {
        ScriptEngineManager scriptEngineManager = new ScriptEngineManager();
        ScriptEngine engine = scriptEngineManager.getEngineByName("nashorn");
//        engine.eval(new java.io.FileReader("/Users/piangpiang/Documents/my-workspace/my-mayun/tjs-study-notes-test2/tjs-study-notes/tjs-study-notes/tjs-study-dotest/src/main/java/tjs/study/notes/dotest/work" +
//                        "/prql_js.min.js"));
//        engine.eval("print(getAdd(3, 4))");



    }
}
